From 028ef9e1b1502b5380f6110f1870808262129623 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 26 Jun 2023 22:40:20 +0100 Subject: Generate WASM functions for Shed functions --- ...mpiler.testing.snapshots.Snapshotter)].expected | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..3485b7f0 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,36 @@ + +module.wasm: file format wasm 0x1 + +Section Details: + +Type[2]: + - type[0] (i32) -> i32 + - type[1] () -> nil +Import[2]: + - table[0] type=funcref initial=0 <- env.__indirect_function_table + - memory[0] pages: initial=0 <- env.__linear_memory +Function[2]: + - func[0] sig=0 + - func[1] sig=1 +Code[2]: + - func[0] size=5 + - func[1] size=2 +Custom: + - name: "name" + - func[0] + - func[1] + - func[0] local[0] +Custom: + - name: "linking" + - symbol table [count=2] + - 0: F func=0 [ binding=global vis=default ] + - 1: F func=1 [ binding=global vis=default ] + +Code Disassembly: + +00006c func[0] : + 00006d: 41 00 | i32.const 0 + 00006f: 0f | return + 000070: 0b | end +000076 func[1] : + 000077: 0b | end \ No newline at end of file -- cgit v1.2.3